// 菜品分类模型
class Category {
  final int id;
  final String name;

  Category({
    required this.id,
    required this.name,
  });
}

// 菜品模型
class Food {
  final int id;
  final int categoryId;
  final String name;
  final double price;
  final String image;
  final String description;

  Food({
    required this.id,
    required this.categoryId,
    required this.name,
    required this.price,
    required this.image,
    required this.description,
  });
}

// 购物车模型
class CartItem {
  final Food food;
  int quantity;

  CartItem({
    required this.food,
    required this.quantity,
  });
}